import request from '@/utils/request'
export function getPexels(params) {
  return request({
    url: '/pexels/list',
    params
  })
}
export function getHint(q) {
  return request({
    url: '/pexels/hint',
    params: {
      q
    }
  })
}
// 获取主题推荐
export function getThemes() {
  return request({
    url: '/pexels/themes'
  })
}
// 获取指定图片数据
export function getPexelsFromId(id) {
  return request({
    url: `/pexels/${id}`
  })
}
